package com.rds.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rds.common.annotation.Excel;
import com.rds.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * table列对象 rda_table_column
 *
 * @author rds
 * @date 2021-04-19
 */
public class RdaTableColumn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** tableID */
    @Excel(name = "tableID")
    private Long tableid;

    /** 列名称 */
    @Excel(name = "列名称")
    private String name;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 页面参数 */
    @Excel(name = "页面参数")
    private String pageParams;

    /** prop */
    @Excel(name = "prop")
    private String prop;

    /** align */
    @Excel(name = "align")
    private String align;

    /** 宽度 */
    @Excel(name = "宽度")
    private String width;

    /** 类名 */
    @Excel(name = "类名")
    private String className;

    public String getFullEdit() {
        return fullEdit;
    }

    public void setFullEdit(String fullEdit) {
        this.fullEdit = fullEdit;
    }

    private String fullEdit;

    public Boolean getShow() {
        return show;
    }

    public void setShow(Boolean show) {
        this.show = show;
    }

    public Boolean getShowOverflow() {
        return showOverflow;
    }

    public void setShowOverflow(Boolean showOverflow) {
        this.showOverflow = showOverflow;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPropType() {
        return propType;
    }

    public void setPropType(String propType) {
        this.propType = propType;
    }

    /**  */
    @Excel(name = "")
    private Boolean show;
    /**  */
    @Excel(name = "")
    private Boolean showOverflow;
    /**  */
    @Excel(name = "")
    private String url;
    /**  */
    @Excel(name = "")
    private String propType;

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 是否排序 */
    private Boolean sortable;

    public Boolean getSortable() {
        return sortable;
    }

    public void setSortable(Boolean sortable) {
        this.sortable = sortable;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTableid(Long tableid)
    {
        this.tableid = tableid;
    }

    public Long getTableid()
    {
        return tableid;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setModifyTime(Date modifyTime)
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime()
    {
        return modifyTime;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setPageParams(String pageParams)
    {
        this.pageParams = pageParams;
    }

    public String getPageParams()
    {
        return pageParams;
    }
    public void setProp(String prop)
    {
        this.prop = prop;
    }

    public String getProp()
    {
        return prop;
    }
    public void setAlign(String align)
    {
        this.align = align;
    }

    public String getAlign()
    {
        return align;
    }
    public void setWidth(String width)
    {
        this.width = width;
    }

    public String getWidth()
    {
        return width;
    }
    public void setClassName(String className)
    {
        this.className = className;
    }

    public String getClassName()
    {
        return className;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tableid", getTableid())
            .append("name", getName())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("modifyTime", getModifyTime())
            .append("status", getStatus())
            .append("pageParams", getPageParams())
            .append("prop", getProp())
            .append("align", getAlign())
            .append("width", getWidth())
            .append("className", getClassName())
            .append("show", getShow())
            .append("showOverflow", getShowOverflow())
            .append("url", getUrl())
            .append("propType", getPropType())
            .append("sort", getSort())
            .append("sortable", getSortable())
                .append("fullEdit", getFullEdit())
            .toString();
    }
}
